package com.lxhll.personnel.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * (DepartmentTransfer)表实体类
 *
 * @author makejava
 * @since 2021-07-22 14:51:47
 */
@Data
@TableName("department_transfer")
public class DepartmentTransfer implements Serializable {
    @TableId
    private Integer id;
    // 原部门
    private Integer originDepartmentId;
    // 原部门名称
    @TableField(exist = false)
    private String originDepartmentName;

    // 调动后的新部门
    private Integer newDepartmentId;
    // 调动后的新部门名称
    @TableField(exist = false)
    private String newDepartmentName;

    // 调动原因
    private String reason;
    // 调动日期
    private LocalDate transferDate;
    // 调动类型
    private String type;
    // 调动的员工id
    private Integer employeeId;
    // 员工姓名
    @TableField(exist = false)
    private String employeeName;

}
